package cn.scw.framework.protocol;

import cn.scw.framework.protocol.tcp.ChannelHandle;

import java.net.InetAddress;

/**
 * 解析上下文
 */
public class ResolverContext {

    private InetAddress senderIp;
    private Integer port;
    private SenderType senderType;
    private ChannelHandle channelHandle;

    public ResolverContext() {
    }

    public InetAddress getSenderIp() {
        return senderIp;
    }

    public void setSenderIp(InetAddress senderIp) {
        this.senderIp = senderIp;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public SenderType getSenderType() {
        return senderType;
    }

    public void setSenderType(SenderType senderType) {
        this.senderType = senderType;
    }

    public ChannelHandle getChannelHandle() {
        return channelHandle;
    }

    public void setChannelHandle(ChannelHandle channelHandle) {
        this.channelHandle = channelHandle;
    }
}
